﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BCDataCenter;
public partial class ControlUser_SaleOnlineStep2 : System.Web.UI.UserControl
{
    ClassExecute.ClassExecute dt;
    string str = BCDataCenter.Configuration.CurrentConnectionString;
    string error = "";
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            LoadInFoBA();
            lblMaDH.Text= Request.QueryString["tranno"].ToString();
            lblTongTien.Text = Request.QueryString["doctot"].ToString();
        }

    }
    void LoadInFoBA()
    {
        if (Session["Salesp_key_Logon"] != null)
        {
            dt = new ClassExecute.ClassExecute();
            DataTable db = dt.Get_Data_DataTable(str, ref error, "k_getInforBASaleOnline", CommandType.StoredProcedure,
                new SqlParameter("@salesp_key", Session["Salesp_key_Logon"].ToString()));
            txtMaTuVanVien.Text = Session["Salesp_key_Logon"].ToString();
            txtTenTuVanVien.Text = db.Rows[0]["salesp_name"].ToString();
        }
    }
    protected void btContinues_Click(object sender, EventArgs e)
    {
        Response.Redirect(Globals.ApplicationPath + "WebMaster/Administrator/SaleOnline/Default.aspx");
    }
}